package com.hsource.doctorcenter.feign;

import com.hsource.common.utils.CommonResp;
import com.hsource.doctorcenter.domain.pay.Refund;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.*;

import javax.annotation.PostConstruct;

/**
 * @author yangYang
 * @version 1.0
 * @date 2020/10/22 15:51
 * @describe
 */
@FeignClient(name="payment-center",path = "payment-center/pay")
public interface  PaymentFeignClient {
    /**
     * 配置需要调用的微服务接口
     */
    @PostMapping(value="/refund")
    CommonResp refund(@RequestBody String refundString);
}
